home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-02-07 | 1.1 KB | 63 lines | [TEXT/MPS ] |
- (*
- stopVideo - Stop the player.
-
- To compile and link this file using Macintosh Programmer's Workshop,
-
- pascal -w stopVideo.p
-
- link -m ENTRYPOINT -o HyperCommands -rt XCMD=8008 -sn Main=stopVideo ∂
- stopVideo.p.o "{MPW}"Libraries:interface.o "{MPW}"PLibraries:PasLib.o
-
- Copyright © 1987,88 Apple Computer, Inc.
-
- 9/87 - Initial coding by Harry R. Chesley.
- 2/88 - Changed for new interface specification by Harry R. Chesley.
- *)
-
- {$R-}
-
- {$S stopVideo } { Segment name must be the same as the command name. }
-
- unit DummyUnit;
-
- interface
-
- uses MemTypes, QuickDraw, OSIntf, HyperXCmd;
-
- procedure EntryPoint(paramPtr: XCmdPtr);
-
- implementation
-
- type
-
- Str31 = String[31];
-
- procedure stopVideo(paramPtr: XCmdPtr); forward;
-
- procedure EntryPoint(paramPtr: XCmdPtr);
-
- begin
- stopVideo(paramPtr);
- end;
-
- procedure stopVideo(paramPtr: XCmdPtr);
-
- {$I XCmdGlue.inc}
-
- procedure Fail(errMsg: Str255); { set theResult and quit }
- begin
- paramPtr^.returnValue := PasToZero(errMsg);
- exit(stopVideo);
- end;
-
- {$I VideoUtil.inc}
-
- begin
- if paramPtr^.paramCount <> 0 then Fail('parameter count is not 0');
-
- { Stop the player... }
- videoCmd('stop','');
- end;
-
- end.
-